﻿using NHibernate.Cfg;
using nPress.Core.Interfaces;
using nPress.Core.Repositories;
using NUnit.Framework;

namespace nPress.Tests.Models
{
    /// <summary>
    /// Summary description for CreateSchemaTest
    /// </summary>
    [TestFixture]
    public class CreateSchemaTest
    {
        private IRepository _repository;

        [TestFixtureSetUp]
        public void Init() 
        {
            Configuration cfg = new Configuration();
            cfg.Configure("CreateSchemaTest.cfg.xml");
            _repository = new NHibernateRepository(cfg);
        }

        [Test]
        public void CreateSchema() 
        { 
            _repository.InitializeRepository();
        }
    }
}
